package com.wsd.smartcarwasher.service;

import com.wsd.smartcarwasher.dao.SysDicDao;
import com.wsd.smartcarwasher.domain.SysDic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysDicService {
    @Resource
    private SysDicDao sysDicDao;
    public List<SysDic> getAllSysDic() {

        return sysDicDao.getAll();
    }



    public int upDateByCode(SysDic sysDic) {


        return sysDicDao.upDateByCode(sysDic);
    }


    public List<SysDic> getByCode(Integer code) {
        return sysDicDao.getByCode(code);
    }
}
